<?php /* Smarty version 2.6.6, created on 2013-10-22 14:07:56
         compiled from myaudiosedit.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('insert', 'get_audio_categories', 'myaudiosedit.tpl', 36, false),)), $this); ?>
<div id="main_wrap">
	<div class="center_wrap clearfix">
        <h2 class="no_bottom no_top breadcrumb">
        	<a><?php echo $this->_tpl_vars['lang825']; ?>
</a>
        </h2>
		<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "accountmenu.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
		<div class="right col1">
            <div class="cat_box_full clearfix"> 
                <div class="cat_body_full clearfix">
                <?php if ($this->_tpl_vars['error'] != ""): ?>
                <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "show_error.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
                <?php elseif ($this->_tpl_vars['message'] != ""): ?>
                <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "show_message.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
                <?php else: ?>
                  
                <form id="editaudioform" name="editaudio" method="post" enctype="multipart/form-data" action="<?php echo $this->_tpl_vars['baseurl']; ?>
/myaudiosedit.php?AUDIOID=<?php echo $_REQUEST['AUDIOID']; ?>
">
                <div class="accountMenu">
                    <h2><?php echo $this->_tpl_vars['lang848']; ?>
: </h2>
                </div>
                <div class="uploadMenu2">
                    <?php echo $this->_tpl_vars['lang324']; ?>
:&nbsp;
                    <input type="text" name="title" id="title" value="<?php echo $this->_tpl_vars['audioarray'][0]['title']; ?>
" class="textField" size="40"/><br />
                    <div style="height:5px;"></div>
                    
                    <?php echo $this->_tpl_vars['lang113']; ?>
:<br />
                    <textarea name="description" id="description" rows=3 cols=45><?php echo $this->_tpl_vars['audioarray'][0]['description']; ?>
</textarea><br />
                    <div style="height:5px;"></div>
                    
                    <?php echo $this->_tpl_vars['lang325']; ?>
:<br />
                    <input type="text" name="tags" id="tags" value="<?php echo $this->_tpl_vars['audioarray'][0]['tags']; ?>
" class="textField" size="40"/><br />
                    <div style="height:5px;"></div>
                    
                    <?php echo $this->_tpl_vars['lang849']; ?>
:&nbsp;
                    <select id="category" name="category">
                    <option value="0"><?php echo $this->_tpl_vars['lang115']; ?>
</option>
                    <?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');
echo smarty_core_run_insert_handler(array('args' => array('name' => 'get_audio_categories', 'assign' => 'listaudiocategories')), $this); ?>

                    <?php unset($this->_sections['o']);
$this->_sections['o']['name'] = 'o';
$this->_sections['o']['loop'] = is_array($_loop=$this->_tpl_vars['listaudiocategories']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['o']['show'] = true;
$this->_sections['o']['max'] = $this->_sections['o']['loop'];
$this->_sections['o']['step'] = 1;
$this->_sections['o']['start'] = $this->_sections['o']['step'] > 0 ? 0 : $this->_sections['o']['loop']-1;
if ($this->_sections['o']['show']) {
    $this->_sections['o']['total'] = $this->_sections['o']['loop'];
    if ($this->_sections['o']['total'] == 0)
        $this->_sections['o']['show'] = false;
} else
    $this->_sections['o']['total'] = 0;
if ($this->_sections['o']['show']):

            for ($this->_sections['o']['index'] = $this->_sections['o']['start'], $this->_sections['o']['iteration'] = 1;
                 $this->_sections['o']['iteration'] <= $this->_sections['o']['total'];
                 $this->_sections['o']['index'] += $this->_sections['o']['step'], $this->_sections['o']['iteration']++):
$this->_sections['o']['rownum'] = $this->_sections['o']['iteration'];
$this->_sections['o']['index_prev'] = $this->_sections['o']['index'] - $this->_sections['o']['step'];
$this->_sections['o']['index_next'] = $this->_sections['o']['index'] + $this->_sections['o']['step'];
$this->_sections['o']['first']      = ($this->_sections['o']['iteration'] == 1);
$this->_sections['o']['last']       = ($this->_sections['o']['iteration'] == $this->_sections['o']['total']);
?>
                    <option value="<?php echo $this->_tpl_vars['listaudiocategories'][$this->_sections['o']['index']]['CATID']; ?>
" <?php if ($this->_tpl_vars['audioarray'][0]['categories'] == $this->_tpl_vars['listaudiocategories'][$this->_sections['o']['index']]['CATID']): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['listaudiocategories'][$this->_sections['o']['index']]['name']; ?>
</option>
                    <?php endfor; endif; ?>
                    </select>
                    <div style="height:5px;"></div>
                    
                    <?php echo $this->_tpl_vars['lang329']; ?>
:&nbsp;
                    <input type="radio" value="1" name="public" id="public" <?php if ($this->_tpl_vars['audioarray'][0]['public'] == '1'): ?>checked<?php endif; ?>> <?php echo $this->_tpl_vars['lang327']; ?>
&nbsp;&nbsp;&nbsp;
                    <input type="radio" value="0" name="public" id="public" <?php if ($this->_tpl_vars['audioarray'][0]['public'] == '0'): ?>checked<?php endif; ?>> <?php echo $this->_tpl_vars['lang328']; ?>

                    <div style="height:5px;"></div>
                    
                    <?php echo $this->_tpl_vars['lang330']; ?>
:&nbsp;
                    <input type="radio" value="1" name="allowcomments" id="allowcomments" <?php if ($this->_tpl_vars['audioarray'][0]['allowcomments'] == '1'): ?>checked<?php endif; ?>> <?php echo $this->_tpl_vars['lang335']; ?>
&nbsp;&nbsp;&nbsp;
                    <input type="radio" value="0" name="allowcomments" id="allowcomments" <?php if ($this->_tpl_vars['audioarray'][0]['allowcomments'] == '0'): ?>checked<?php endif; ?>> <?php echo $this->_tpl_vars['lang336']; ?>

                    <div style="height:5px;"></div>
                    
                    <?php echo $this->_tpl_vars['lang331']; ?>
:&nbsp;
                    <input type="radio" value="1" name="allowratings" id="allowratings" <?php if ($this->_tpl_vars['audioarray'][0]['allowratings'] == '1'): ?>checked<?php endif; ?>> <?php echo $this->_tpl_vars['lang335']; ?>
&nbsp;&nbsp;&nbsp;
                    <input type="radio" value="0" name="allowratings" id="allowratings" <?php if ($this->_tpl_vars['audioarray'][0]['allowratings'] == '0'): ?>checked<?php endif; ?>> <?php echo $this->_tpl_vars['lang336']; ?>

                    <div style="height:5px;"></div>
                    
                    <?php echo $this->_tpl_vars['lang332']; ?>
:&nbsp;
                    <input type="radio" value="1" name="allowembeds" id="allowembeds" <?php if ($this->_tpl_vars['audioarray'][0]['allowembeds'] == '1'): ?>checked<?php endif; ?>> <?php echo $this->_tpl_vars['lang335']; ?>
&nbsp;&nbsp;&nbsp;
                    <input type="radio" value="0" name="allowembeds" id="allowembeds" <?php if ($this->_tpl_vars['audioarray'][0]['allowembeds'] == '0'): ?>checked<?php endif; ?>> <?php echo $this->_tpl_vars['lang336']; ?>

                    <div style="height:5px;"></div>
                    
                    <?php echo $this->_tpl_vars['lang333']; ?>
:&nbsp;
                    <input type="radio" value="1" name="allowdownloads" id="allowdownloads" <?php if ($this->_tpl_vars['audioarray'][0]['allowdownloads'] == '1'): ?>checked<?php endif; ?>> <?php echo $this->_tpl_vars['lang335']; ?>
&nbsp;&nbsp;&nbsp;
                    <input type="radio" value="0" name="allowdownloads" id="allowdownloads" <?php if ($this->_tpl_vars['audioarray'][0]['allowdownloads'] == '0'): ?>checked<?php endif; ?>> <?php echo $this->_tpl_vars['lang336']; ?>

                    <div style="height:5px;"></div>
                </div>
                
                <div style="padding-top:10px;">
                    <input type="hidden" name="AUDIOID" value="<?php echo $_REQUEST['AUDIOID']; ?>
" />
                    <input type="submit" name="editaudio" value="<?php echo $this->_tpl_vars['lang10']; ?>
" />
                </div>
                </form>
    			<?php endif; ?>
                </div>
  			</div>
		</div>
    	<div class="clear"></div>
	</div>
</div>